package com.example.juc.threadPool;

import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class ThreadPoolTest {

    static ThreadPoolExecutor executor = new ThreadPoolExecutor(10, 20, 1000L,
            TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(), Executors.defaultThreadFactory(), new ThreadPoolExecutor.AbortPolicy());

    public static void main(String[] args) {
        executor.execute(new Runnable() {
            @Override
            public void run() {

            }
        });

        executor.shutdown();
    }


}
